<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in banner" :key="item.id">
        <img :src="'http://218.7.112.123:10001/' + item.advImg">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  props: ['banner'],
  methods: {
    
  }
};
</script>

<style lang="scss" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  text-align: center;
}
img {
  width: 100%;
  height: auto;
}
</style>